package com.cuixk.microservice.eureka.feign;


import com.cuixk.microservice.eureka.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-client")
public interface UserFeign {

    @GetMapping("/user/{id}")
    User getUserInfo(@PathVariable Integer id);
}
